package com.zhs.blog.exception;

/**
 * @ClassName: SystemException
 * @Descripiton: TODO
 * @Author: 小郑
 * @Date： 2025/5/10 17:08
 * @Version：1.8
 **/

import com.zhs.blog.enu.AppHttpCodeEnum;


public class SystemException extends RuntimeException{

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    public SystemException(AppHttpCodeEnum httpCodeEnum) {
        super(httpCodeEnum.getMsg());
        this.code = httpCodeEnum.getCode();
        this.msg = httpCodeEnum.getMsg();
    }

}

